package cn.kgc.javaweb.service.impl;

import cn.kgc.javaweb.dao.UserDao;
import cn.kgc.javaweb.dao.impl.UserDaoImpl;
import cn.kgc.javaweb.entity.User;
import cn.kgc.javaweb.service.UserService;

/**
 * @author: mosin
 * @version: v1.0  2022/10/30
 * 用户业务逻辑的处理类  不做持久化操作  jdbc
 */
public class UserServiceImpl  implements UserService {

    private UserDao userDao = new UserDaoImpl();

    @Override
    public Boolean login(User user) {
        //  登成功  true   false
        User usr = userDao.selectUser(user);   // null   false
        return  usr!=null;
    }

    @Override
    public Boolean register(User user) {


        return null;
    }
}
